import request from '@/utils/request'
import { method } from 'lodash'

// 测评游戏三结束接口
export function gameEnd() {
  return request({
    url: '/assess/spglJoystickData/endCatch',
    method: 'get'
  })
}

// 获取游戏三得分情况
export function getResuleGame3() {
  return request({
    url: '/fly/grab/nameGrab',
    method: 'get'
  })
}

// 获取游戏三事件列表
export function getGameEvent() {
  return request({
    url: '/fly/three/list',
    method: 'get'
  })
}

// 获取游戏二测评结果
export function getResult() {
  return request({
    url: '/fly/allMessage/list',
    method: 'get'
  })
}

// 获取游戏一测评结果
export function getFlyResult(data) {
  return request({
    url: '/fly/planeSpeed/ball/list',
    method: 'post',
    data
  })
}

// 新增飞行任务
export function addFlyTask(data) {
  return request({
    url: '/fly/task/add',
    method: 'post',
    data
  })
}

// 修改飞行任务
export function updateFlyTask(data) {
  return request({
    url: '/fly/task/edit',
    method: 'post',
    data
  })
}

// 删除任务
export function deleteFlyTask(data) {
  return request({
    url: '/fly/task/delete',
    method: 'post',
    data
  })
}